<template>
  <div class="center">
    <h4 class="title">客户预付费变动情况</h4>
    <div class="topTitle">
      <div>姓名:{{ data.name }}</div>
      <div>病历号: {{ data.caseNumber }}</div>
      <div>性别:{{ data.sex == 0 ? '未知' : data.sex == 1 ? '男' : '女' }}</div>
      <div>年龄:{{ data.age }}</div>
      <div>联系电话:{{ data.phoneNumber }}</div>
    </div>
    <div class="main">
      <div class="mainTop">
        <div class="divStyle">操作</div>
        <div class="divStyle" style="width: 25%">操作时间</div>
        <div class="divStyle">金额</div>
        <div class="divStyle">收费方式</div>
        <div class="divStyle">转账人</div>
        <div class="divStyle">收费人</div>
        <div class="divStyle">备注</div>
        <div class="divStyle">缴费人</div>
        <div class="divStyle">操作门诊</div>
      </div>
    </div>
    <div class="main">
      <div class="mainTop">
        <div class="divStyle">充值</div>
        <div class="divStyle" style="width: 25%">{{ data.createTime }}</div>
        <div class="divStyle">{{ data.consumptionAmount }}.00</div>
        <div class="divStyle">现金</div>
        <div class="divStyle"></div>
        <div class="divStyle"></div>
        <div class="divStyle"></div>
        <div class="divStyle">{{ data.createBy }}</div>
        <div class="divStyle">{{ data.createClinic }}</div>
      </div>
    </div>
    <div class="topTitle">
      <div class="bottomDiv">客户签字:</div>
      <div class="bottomDiv">日期:</div>
    </div>
  </div>
</template>

<script>
/**到店——患者信息——收费记录 */
/**到店——患者信息——未结账记录——结账 */

export default {
  name: 'Accounts',
  props: {
    data: {
      type: Object,
      default: () => ({}),
    },
  },
  mounted() {
    setTimeout(() => {
      console.log(this.data)
    }, 300)
  },
}
</script>

<style lang="scss" scoped>
.center {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 800px;
  .title {
    text-align: center;
  }
  .topTitle {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .main {
    display: flex;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    .mainTop {
      display: flex;
      flex-wrap: nowrap;
      border-bottom: 1px solid black;
      padding: 4px 0;
      padding-top: 12px;
      .divStyle {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        width: 11%;
        padding: 0 20px;
      }
    }
  }
  .bottomDiv {
    width: 50%;
    margin-top: 8px;
  }
}
</style>
